﻿using System;
using System.Text;
using System.Data;
using System.Collections;
using DataBaseConnection;

namespace DataEntity
{
    /// <summary>
    /// 广告
    /// </summary>
    public partial class tab_Advertisement : IEntity
    {
        public tab_Advertisement() { }

        public tab_Advertisement(bool Nullable)
            : base(Nullable) { }

        #region 实体成员

        /// <summary>
        /// [广告名称] - VarChar(50)
        /// </summary>
        public string adv_ADName = string.Empty;

        /// <summary>
        /// [广告类型{1.Image 2.Swf 3.Text 4.Code 5.URL}] - Int
        /// </summary>
        public int? adv_ADType = 0;

        /// <summary>
        /// [点击量] - Int
        /// </summary>
        public int? adv_Clicks = 0;

        /// <summary>
        /// [是否计数] - Bit
        /// </summary>
        public bool? adv_CountView = false;

        /// <summary>
        /// [描述] - VarChar(255)
        /// </summary>
        public string adv_Description = string.Empty;

        /// <summary>
        /// [是否透明] - Bit
        /// </summary>
        public bool? adv_FlashWmode = false;

        /// <summary>
        /// [自动编号] - Int
        /// </summary>
        [AutoKey]
        public int? adv_ID = 0;

        /// <summary>
        /// [广告高度] - Int
        /// </summary>
        public int? adv_ImgHeight = 0;

        /// <summary>
        /// [图片路径] - VarChar(255)
        /// </summary>
        public string adv_ImgUrl = string.Empty;

        /// <summary>
        /// [图片宽度] - Int
        /// </summary>
        public int? adv_ImgWidth = 0;

        /// <summary>
        /// [是否活动] - Bit
        /// </summary>
        public bool? adv_IsActive = false;

        /// <summary>
        /// [提示文字] - VarChar(50)
        /// </summary>
        public string adv_LinkAlt = string.Empty;

        /// <summary>
        /// [链接目标{0._blank 1._self}] - Bit
        /// </summary>
        public bool? adv_LinkTarget = false;

        /// <summary>
        /// [链接网址] - VarChar(255)
        /// </summary>
        public string adv_LinkUrl = string.Empty;

        /// <summary>
        /// [发布日期] - DateTime
        /// </summary>
        public DateTime? adv_PubDate = DateTime.Now;

        /// <summary>
        /// [版位编号] - Int
        /// </summary>
        public int? adv_ZoneID = 0;

        #endregion
    }
}

